package com.chaos.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chaos.framework.model.entity.PlainModel;
import io.swagger.annotations.ApiModel;
import lombok.*;
import lombok.experimental.Accessors;

import java.sql.Blob;

/**
 * @author Jacky
 * @since 2024-05-07
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("oauth_access_token")
@ApiModel(value = "OauthAccessToken实体", description = "")
public class OauthAccessToken extends PlainModel {

    @TableId(value = "authentication_id", type = IdType.NONE)
    private String authenticationId;

    @TableField("token_id")
    private String tokenId;

    @TableField("token")
    private Blob token;

    @TableField("user_name")
    private String userName;

    @TableField("client_id")
    private String clientId;

    @TableField("authentication")
    private Blob authentication;

    @TableField("refresh_token")
    private String refreshToken;


}
